﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            UDisk u1 = new UDisk("金士顿64G");
            MDisk m1 = new MDisk("三星500G");

            u1.info();
            u1.Read();
            u1.Write();
            Console.WriteLine();
            m1.info();
            m1.Read();
            m1.Write();

            Console.WriteLine();
            Computer com = new Computer("联想");

            com.Start();
            com.Usb1 = u1;
            com.Usb2 = m1;
            com.WriteData();
            com.ReadData();
            com.End();
        }
    }
}
